﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient;

/// <summary>
///Myapply 的摘要说明
/// </summary>
public class Myapply
{
	public Myapply()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    private SqlCommand cmd;
    public Boolean isapply(int id)
    {
        Boolean bl = false;
        try
        {
            cmd = new SqlCommand();
            cmd.Connection = ConDB.GetOpen();
            cmd.CommandText = "select islook from tb_jobapply where jaid=@jaid";
            cmd.Parameters.Add("@jaid", SqlDbType.Int).Value = id;
            bl=(Boolean)cmd.ExecuteScalar();
        }
        catch (Exception e)
        {

        }
        finally
        {
            ConDB.Close();
        }
        return bl;
    }
}
